package ZuCheXitong;

public class baoma extends jiaoche {
    private double price;
    private int day;
    baoma(String color,int day){
        super("宝马",color);
        this.price=800;
        this.day=day;
    }
    public double Sum(){
        double sum;
        sum=day*price;
        return sum;
    }
}
